HTTP Headers

  • Representation of the HTTP headers associated with a HTTPRequest or HTTPResponse. Headers are subscriptable using case-insensitive comparison or provide Name constants. eg.

       let contentLength = headers["content-length"]
    

    or

       let contentLength = headers[.contentLength]
    
    See more

    Declaration

    Swift

    public struct HTTPHeaders
  • Version number of the HTTP Protocol

    See more

    Declaration

    Swift

    public struct HTTPVersion